<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <link rel="Bookmark" href="imgs/bai.ico"/>
    <link rel="Shortcut Icon" href="imgs/bai.ico"/>
    <title>进入小程序</title>
    <style type="text/css">
        * { margin: 0; }
        body { margin: 0; padding: 0; background: #ddd; }
        #body { max-width: 500px; background: #fff; }
        #header { padding: 10px 0; max-width: 500px; width: 100%; background: #fff; text-align: center; color: #888; font-size: 12px; font-weight: bolder; box-shadow: 0 0 5px #888; position: fixed; top: 0; z-index: 1000; }
        #fanhui { margin-left: 10px; float: left; }
        #copyma { margin-top: 30px; padding: 20px 30px; width: 100%; background: #eee; }
        #ewm { margin-top: 30px; padding: 20px; font-size: 20px; font-weight: bolder; }
        #ewm img { margin: 10px 0; width: 100%; border: 1px solid #0088cc; }
    </style>
</head>
<body>
<div id="body">
    <div id="header">
        <span id="fanhui" onclick="history.back();">返回</span>
        进入小程序获取红包
        <span>&nbsp; &nbsp;</span>
    </div>

    <!--<div id="copyma">-->
        <!--<div style="font-size: 12px;">请复制下面编号，到小程序中粘贴登录：</div>-->
        <!--<div style="font-size: 20px; font-weight: bolder;" id="h5code"></div>-->
        <!--<a href="javascript:;" onclick="copy();"-->
           <!--style="color: #0088cc; text-decoration: underline;">点击复制-->
        <!--</a>-->
    <!--</div>-->

    <div id="ewm">
        <div>请长按下面二维码</div>
        <img src="imgs/gh_7c8752949ae9_1280.jpg"/>
        <div>选择“识别图中的二维码”</div>
        <img src="imgs/xcx008.png"/>
    </div>

    <!--登录弹窗-->
    <span id="formPop"></span>
    <!--信息弹窗-->
    <span id="msgPop"></span>
</div>
</body>
</html>


<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/view.js"></script>
<script type="text/javascript">
    var cw = document.documentElement.clientWidth;
    var ch = document.documentElement.clientHeight;
    var code = getParamByUrl('code');
    var h5code = getParamByUrl('h5code');
    var scene_id = getParamByUrl('scene_id');
    (function(){
        $('#h5code').html(h5code);
    })();
    setTimeout("copy()", 1000);
    //点击复制
    function copy(){
        var $temp = $("<input>");
        $("body").append($temp);
        $temp.val(h5code).select();
        document.execCommand("copy");
        $temp.remove();
        //msgPop({msg: '复制成功'});
        console.log('复制成功：' + h5code);
    }
</script>